#!/bin/bash

# 服务器列表
servers=("k8s-master01" "k8s-master03" "k8s-node04" "k8s-node05" "k8s-node06")

# 遍历服务器列表并执行 update_proxy.sh 脚本
for server in "${servers[@]}"; do
    echo "Updating proxy settings on $server..."
    ssh $server 'bash -s' < update_proxy.sh
    echo "Done with $server"
done

